package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabRptdetailBac;
import com.ysd.lis.service.lab.LabRptdetailBacService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-03-26
 */
@RestController
@RequestMapping("/api/bac/lab-rptdetail-bac")
public class LabRptdetailBacController extends BaseController {
    @Autowired
    LabRptdetailBacService labRptdetailBacService;

    @ApiOperation("查询")
    @GetMapping("/findLabRptdetailBacList")
    public Result findLabRptdetailBacList(LabRptdetailBac labRptdetailBac) {
        return labRptdetailBacService.findLabRptdetailBacList(labRptdetailBac);
    }

    @ApiOperation("增加")
    @PostMapping("/addLabRptdetailBac")
    public Result addLabRptdetailBac(@RequestBody LabRptdetailBac labRptdetailBac) {
        return labRptdetailBacService.addLabRptdetailBac(labRptdetailBac);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteLabRptdetailBac")
    public Result deleteLabRptdetailBac(@RequestBody LabRptdetailBac labRptdetailBac) {
        return labRptdetailBacService.deleteLabRptdetailBac(labRptdetailBac);
    }

    @ApiOperation("修改")
    @PostMapping("/updateLabRptdetailBac")
    public Result updateLabRptdetailBac(@RequestBody LabRptdetailBac labRptdetailBac) {
        return labRptdetailBacService.updateLabRptdetailBac(labRptdetailBac);
    }
}
